import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_app/BaseMaterialWidget.dart';

class PageLayoutDemo extends BaseMaterialWidget {
  @override
  Widget buildContent(BuildContext context) {
    return Column(
      children: <Widget>[
        Row(
          children: <Widget>[
            Container(
              width: 150,
              height: 150,
              margin: EdgeInsets.all(10),
              decoration: BoxDecoration(
                border: Border.all(width: 10, color: Colors.green),
                borderRadius: BorderRadius.all(Radius.circular(4))
              ),
              child: Image.asset('images/lake.jpg'),
            ),
            Container(
              width: 150,
              height: 150,
              padding: EdgeInsets.all(10),
              margin: EdgeInsets.all(10),
              decoration: BoxDecoration(
                  border: Border.all(width: 10, color: Colors.green),
                  borderRadius: BorderRadius.all(Radius.circular(4))
              ),
              child: Image.asset('images/lake.jpg'),
            )

          ],
        ),
        Row(
          children: <Widget>[
            Container(
              width: 150,
              height: 150,
              margin: EdgeInsets.all(10),
              decoration: BoxDecoration(
                  border: Border.all(width: 10, color: Colors.green),
                  borderRadius: BorderRadius.all(Radius.circular(4))
              ),
              child: Image.asset('images/lake.jpg'),
            ),
            Container(
              width: 150,
              height: 150,
              margin: EdgeInsets.all(10),
              decoration: BoxDecoration(
                  border: Border.all(width: 10, color: Colors.green),
                  borderRadius: BorderRadius.all(Radius.circular(4))
              ),
              child: Image.asset('images/lake.jpg'),
            )
          ],
        )
      ],
    );
  }

  @override
  String getTitle() {
    return '页面基础布局';
  }
}
